#ifndef __HL10_H
#define __HL10_H

#include <stdint.h>

#define  HL10_AT_CMD_SET_SUCCESS		   1
#define  HL10_AT_CMD_SET_FAIL		             0

#define	REG_HL10_ROLA_AO_BAS_ADDR  300 

enum
{
	net,
	tfre_h,
	tfre_l,
	rfre_h,
	rfre_l,
	_pow,
	bw,
	tsf,
  rsf,
	cr,
	
	mode,
	sync,
	prem,
	crc,
	tiq,
	riq,
	seq,
	ip,
	aes,
	ack,
	
	ldr,
	par,
	lcp,
	lft,
	aes_key,
	reserve35,
  reserve36,
	curr_msg,
	at_result,
	rtu_id,
};

struct S_REG_HL10_ROLA_AO
{
	uint16_t  net;
	uint16_t 	tfre_h;
	uint16_t 	tfre_l;
	uint16_t 	rfre_h;
	uint16_t 	rfre_l;
	uint16_t 	_pow;
	uint16_t 	bw;
	uint16_t 	tsf;
	uint16_t 	rsf;
	uint16_t 	cr;
	
	uint16_t 	mode;
	uint16_t 	sync;
	uint16_t 	prem;
	uint16_t	crc;
	uint16_t 	tiq;
	uint16_t 	riq;
	uint16_t 	seq;
	uint16_t 	ip;
	uint16_t 	aes;
	uint16_t 	ack;
	
	uint16_t 	ldr;
	uint16_t 	par;
	uint16_t 	lcp;
	uint16_t 	lft;
	uint16_t  aes_key;
	uint16_t  reserve35;
	uint16_t  reserve36;
	uint16_t  curr_msg;
	uint16_t  at_result;
	uint16_t  rtu_id;
};

void hl10_init(void);
#endif
